Surround the drag-outside-to-remove-bookmarks code with "#if 0" blocks;
authorFederico Mena Quintero <federico@ximian.com>
Mon, 15 Mar 2004 06:29:33 +0000 (06:29 +0000)
committerFederico Mena Quintero <federico@src.gnome.org>
Mon, 15 Mar 2004 06:29:33 +0000 (06:29 +0000)
2004-03-15  Federico Mena Quintero  <federico@ximian.com>

* gtk/gtkfilechooserdefault.c: Surround the
drag-outside-to-remove-bookmarks code with "#if 0" blocks; it's
too unstable right now.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkfilechooserdefault.c

index a9db2d1dbe1229b1672805fc8dd32bf2f174c1ca..b819ba36234673cbd6733e291bb670aab183adad 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2004-03-15  Federico Mena Quintero  <federico@ximian.com>
+
+       * gtk/gtkfilechooserdefault.c: Surround the
+       drag-outside-to-remove-bookmarks code with "#if 0" blocks; it's
+       too unstable right now.
+
 Sun Mar 14 23:36:15 2004  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkfilechooserdefault.c: Implement local_only by
index a9db2d1dbe1229b1672805fc8dd32bf2f174c1ca..b819ba36234673cbd6733e291bb670aab183adad 100644 (file)
@@ -1,3 +1,9 @@
+2004-03-15  Federico Mena Quintero  <federico@ximian.com>
+
+       * gtk/gtkfilechooserdefault.c: Surround the
+       drag-outside-to-remove-bookmarks code with "#if 0" blocks; it's
+       too unstable right now.
+
 Sun Mar 14 23:36:15 2004  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkfilechooserdefault.c: Implement local_only by
index a9db2d1dbe1229b1672805fc8dd32bf2f174c1ca..b819ba36234673cbd6733e291bb670aab183adad 100644 (file)
@@ -1,3 +1,9 @@
+2004-03-15  Federico Mena Quintero  <federico@ximian.com>
+
+       * gtk/gtkfilechooserdefault.c: Surround the
+       drag-outside-to-remove-bookmarks code with "#if 0" blocks; it's
+       too unstable right now.
+
 Sun Mar 14 23:36:15 2004  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkfilechooserdefault.c: Implement local_only by
index a9db2d1dbe1229b1672805fc8dd32bf2f174c1ca..b819ba36234673cbd6733e291bb670aab183adad 100644 (file)
@@ -1,3 +1,9 @@
+2004-03-15  Federico Mena Quintero  <federico@ximian.com>
+
+       * gtk/gtkfilechooserdefault.c: Surround the
+       drag-outside-to-remove-bookmarks code with "#if 0" blocks; it's
+       too unstable right now.
+
 Sun Mar 14 23:36:15 2004  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkfilechooserdefault.c: Implement local_only by
index a9db2d1dbe1229b1672805fc8dd32bf2f174c1ca..b819ba36234673cbd6733e291bb670aab183adad 100644 (file)
@@ -1,3 +1,9 @@
+2004-03-15  Federico Mena Quintero  <federico@ximian.com>
+
+       * gtk/gtkfilechooserdefault.c: Surround the
+       drag-outside-to-remove-bookmarks code with "#if 0" blocks; it's
+       too unstable right now.
+
 Sun Mar 14 23:36:15 2004  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkfilechooserdefault.c: Implement local_only by
index 86e7be4bc73cc57f4f689306e75a93a7b55ec9c2..0c712f21551164e29d8bc9ae4163dd04ce47b3f5 100644 (file)
@@ -148,8 +148,10 @@ struct _GtkFileChooserDefault
   guint settings_signal_id;
   int icon_size;
 
+#if 0
   GdkDragContext *shortcuts_drag_context;
   GSource *shortcuts_drag_outside_idle;
+#endif
 
   /* Flags */
 
@@ -162,7 +164,10 @@ struct _GtkFileChooserDefault
   guint changing_folder : 1;
   guint shortcuts_current_folder_active : 1;
   guint shortcuts_current_folder_is_volume : 1;
+
+#if 0
   guint shortcuts_drag_outside : 1;
+#endif
 };
 
 /* Signal IDs */
@@ -1844,9 +1849,12 @@ shortcuts_drag_begin_cb (GtkWidget             *widget,
                         GdkDragContext        *context,
                         GtkFileChooserDefault *impl)
 {
+#if 0
   impl->shortcuts_drag_context = g_object_ref (context);
+#endif
 }
 
+#if 0
 /* Removes the idle handler for outside drags */
 static void
 shortcuts_cancel_drag_outside_idle (GtkFileChooserDefault *impl)
@@ -1857,6 +1865,7 @@ shortcuts_cancel_drag_outside_idle (GtkFileChooserDefault *impl)
   g_source_destroy (impl->shortcuts_drag_outside_idle);
   impl->shortcuts_drag_outside_idle = NULL;
 }
+#endif
 
 /* GtkWidget::drag-end handler for the shortcuts list. */
 static void
@@ -1864,6 +1873,7 @@ shortcuts_drag_end_cb (GtkWidget             *widget,
                       GdkDragContext        *context,
                       GtkFileChooserDefault *impl)
 {
+#if 0
   g_object_unref (impl->shortcuts_drag_context);
 
   shortcuts_cancel_drag_outside_idle (impl);
@@ -1874,6 +1884,7 @@ shortcuts_drag_end_cb (GtkWidget             *widget,
   gtk_button_clicked (GTK_BUTTON (impl->browse_shortcuts_remove_button));
 
   impl->shortcuts_drag_outside = FALSE;
+#endif
 }
 
 /* GtkWidget::drag-data-delete handler for the shortcuts list. */
@@ -1885,6 +1896,7 @@ shortcuts_drag_data_delete_cb (GtkWidget             *widget,
   g_signal_stop_emission_by_name (widget, "drag-data-delete");
 }
 
+#if 0
 /* Creates a suitable drag cursor to indicate that the selected bookmark will be
  * deleted or not.
  */
@@ -2043,6 +2055,7 @@ shortcuts_drag_outside_idle_cb (GtkFileChooserDefault *impl)
   shortcuts_cancel_drag_outside_idle (impl);
   return FALSE;
 }
+#endif
 
 /* GtkWidget::drag-leave handler for the shortcuts list.  We unhighlight the
  * drop position.
@@ -2053,6 +2066,7 @@ shortcuts_drag_leave_cb (GtkWidget             *widget,
                         guint                  time_,
                         GtkFileChooserDefault *impl)
 {
+#if 0
   if (gtk_drag_get_source_widget (context) == widget && !impl->shortcuts_drag_outside_idle)
     {
       impl->shortcuts_drag_outside_idle = g_idle_source_new ();
@@ -2061,6 +2075,7 @@ shortcuts_drag_leave_cb (GtkWidget             *widget,
                                                   G_OBJECT (impl)));
       g_source_attach (impl->shortcuts_drag_outside_idle, NULL);
     }
+#endif
 
   gtk_tree_view_set_drag_dest_row (GTK_TREE_VIEW (impl->browse_shortcuts_tree_view),
                                   NULL,
@@ -2143,6 +2158,7 @@ shortcuts_drag_motion_cb (GtkWidget             *widget,
   GtkTreeViewDropPosition pos;
   GdkDragAction action;
 
+#if 0
   if (gtk_drag_get_source_widget (context) == widget)
     {
       shortcuts_cancel_drag_outside_idle (impl);
@@ -2153,6 +2169,7 @@ shortcuts_drag_motion_cb (GtkWidget             *widget,
          impl->shortcuts_drag_outside = FALSE;
        }
     }
+#endif
 
   if (context->suggested_action == GDK_ACTION_COPY || (context->actions & GDK_ACTION_COPY) != 0)
     action = GDK_ACTION_COPY;
@@ -2190,7 +2207,9 @@ shortcuts_drag_drop_cb (GtkWidget             *widget,
                        guint                  time_,
                        GtkFileChooserDefault *impl)
 {
+#if 0
   shortcuts_cancel_drag_outside_idle (impl);
+#endif
 
   g_signal_stop_emission_by_name (widget, "drag-drop");
   return TRUE;